<%--
  - Author		:	이 영호
  --%>
<%@ page language="java" %>
<%@ page contentType="text/html; charset=utf-8" %>
<%@ page pageEncoding="utf-8" %>
<%@ include file="/WEB-INF/pages/includes/taglibs.jspf" %>
<div class="headerWrap">
	<div class="header">
		<div class="headerInfo">
			<div class="headerLogo">
				<a href="<c:url value="/" />"><img src="<c:url value="${dirImages}/logo.png" />" title="moiba logo" alt="moiba logo"></a>
			</div>
			<div class="userInfo">
				<c:if test="${not empty sessionScope.userId}">
					<div>
						${sessionScope.userNm}님 환영합니다. | <a href="<c:url value="/logout" />">LOGOUT</a>
					</div>
				</c:if>
			</div>
		</div>
		<div class="topMenuWrap">
			<ul>
				<li class="mainbt01">&nbsp;</li>
				<c:choose>
					<c:when test="${sessionScope.userRole eq 'ROLE_TESTER'}">
						<li class="mainbt06" title="체험단" onclick="javascript:window.location.href='<c:url value="/tester/notice.do" />';"></li>
						<li class="mainbt09" style="cursor: default;"></li>
					</c:when>
					<c:when test="${sessionScope.userRole eq 'ROLE_ADMIN'}">
						<li class="mainbt07" title="정보관리" onclick="javascript:window.location.href='<c:url value="/backoffice/user/list.do" />';"></li>
						<li class="mainbt03" title="검증 신청" onclick="javascript:window.location.href='<c:url value="/backoffice/request/applet.do" />';"></li>
						<li class="mainbt04" title="검증 결과 현황" onclick="javascript:window.location.href='<c:url value="/backoffice/result/list.do" />';"></li>
						<li class="mainbt05" title="고객 지원" onclick="javascript:window.location.href='<c:url value="/backoffice/board/notice.do" />';"></li>
					</c:when>
					<c:otherwise>
						<li class="mainbt02" title="My Page" onclick="javascript:window.location.href='<c:url value="/mypage/verification.do" />';"></li>
						<li class="mainbt03" title="검증 신청" onclick="javascript:window.location.href='<c:url value="/request/applet.do" />';"></li>
						<li class="mainbt04" title="검증 결과 현황" onclick="javascript:window.location.href='<c:url value="/result/list.do" />';"></li>
						<li class="mainbt05" title="고객 지원" onclick="javascript:window.location.href='<c:url value="/board/notice.do" />';"></li>
					</c:otherwise>
				</c:choose>
				<li class="mainbt08">&nbsp;</li>
			</ul>
		</div>
	</div>
</div>